Skip to main content
Version: 3.x.x

DispatcherStorageType


import { DispatcherStorageType } from "@hyper-fetch/core"

Description

Defined in dispatcher/dispatcher.types.ts:26

Preview

type DispatcherStorageType = {
clear: () => void;
delete: (key: string) => void;
get: <Request>(key: string) => QueueDataType<Request> | undefined;
keys: () => string[] | IterableIterator<string>;
set: <Request>(key: string, data: QueueDataType<Request>) => void;
}

Structure

{
clear: () => void;
delete: (key: string) => void;
get: (key: string) => QueueDataType<Request> | undefined;
keys: () => string[] | IterableIterator<string>;
set: (key: string, data: QueueDataType<Request>) => void;
}